package com.nt.oam.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nt.oam.domain.AntHardwareAsset;

/**
 * 硬件资产Mapper接口
 *
 * @author JZFeng
 * @date 2025-02-05
 */
public interface AntHardwareAssetMapper extends BaseMapper<AntHardwareAsset> {
    /**
     * 查询硬件资产
     *
     * @param hardwareAssetId 硬件资产主键
     * @return 硬件资产
     */
    public AntHardwareAsset selectAntHardwareAssetByHardwareAssetId(Long hardwareAssetId);

    /**
     * 查询硬件资产列表
     *
     * @param antHardwareAsset 硬件资产
     * @return 硬件资产集合
     */
    public List<AntHardwareAsset> selectAntHardwareAssetList(AntHardwareAsset antHardwareAsset);

    /**
     * 新增硬件资产
     *
     * @param antHardwareAsset 硬件资产
     * @return 结果
     */
    public int insertAntHardwareAsset(AntHardwareAsset antHardwareAsset);

    /**
     * 修改硬件资产
     *
     * @param antHardwareAsset 硬件资产
     * @return 结果
     */
    public int updateAntHardwareAsset(AntHardwareAsset antHardwareAsset);

    /**
     * 删除硬件资产
     *
     * @param hardwareAssetId 硬件资产主键
     * @return 结果
     */
    public int deleteAntHardwareAssetByHardwareAssetId(Long hardwareAssetId);

    /**
     * 批量删除硬件资产
     *
     * @param hardwareAssetIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteAntHardwareAssetByHardwareAssetIds(Long[] hardwareAssetIds);

    /**
     * 通过项目的id来查询硬件资产
     *
     * @return 硬件资产
     */
    public List<AntHardwareAsset> selectByProjectIdHardwareAsset(Long projectId);

    /**
     * 通过医院的id来查询硬件资产
     *
     * @return 硬件资产
     */
    public List<AntHardwareAsset> selectByHospitalIdHardwareAsset(Long hospitalId);
}
